﻿@model IEnumerable<Hrm.Core.BlogPost>
<div class="sidebar-widget">
    <div class="tabs simple-tabs">
        <ul id="rstab" class="nav nav-tabs nav-justified mb0">
            <li class="active">
                <a href="#popular-posts" data-toggle="tab"><i class="fa fa-heart"></i>  评价最多的博文 </a>
            </li>
        </ul>
        <div id="rstab-content" class="tab-content">
            <div class="tab-pane fade active in" id="popular-posts">
                <ul class="blog-list-small">
                    @foreach (var item in Model)
                    {
                        <li>
                            <h4>
                                <a href="@Url.Action("BlogItem", new { Id= @item.Id})">@item.Title</a>
                            </h4>
                            <div class="blog-meta">
                                <a href="@Url.Action("BlogItem", new { Id= @item.Id})#commentsAnchor">
                                    <i class="fa fa-comments"></i> @item.BlogComments.Count 个评价
                                </a>
                            </div>
                        </li>
                    }
                </ul>
            </div>
        </div>
    </div>
</div>

